Integrand size = 41, antiderivative size = 190 \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {2 (9 A b+9 a B+7 b C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d}+\frac {2 (7 a A+5 b B+5 a C) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{21 d}+\frac {2 (7 a A+5 b B+5 a C) \sqrt {\cos (c+d x)} \sin (c+d x)}{21 d}+\frac {2 (9 A b+9 a B+7 b C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 (b B+a C) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{7 d}+\frac {2 b C \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{9 d} \]
2/15*(9*A*b+9*B*a+7*C*b)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*E llipticE(sin(1/2*d*x+1/2*c),2^(1/2))/d+2/21*(7*A*a+5*B*b+5*C*a)*(cos(1/2*d *x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2) )/d+2/45*(9*A*b+9*B*a+7*C*b)*cos(d*x+c)^(3/2)*sin(d*x+c)/d+2/7*(B*b+C*a)*c os(d*x+c)^(5/2)*sin(d*x+c)/d+2/9*b*C*cos(d*x+c)^(7/2)*sin(d*x+c)/d+2/21*(7 *A*a+5*B*b+5*C*a)*sin(d*x+c)*cos(d*x+c)^(1/2)/d
Time = 2.33 (sec) , antiderivative size = 143, normalized size of antiderivative = 0.75 \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {84 (9 A b+9 a B+7 b C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+60 (7 a A+5 b B+5 a C) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\sqrt {\cos (c+d x)} (7 (36 A b+36 a B+43 b C) \cos (c+d x)+5 (84 a A+78 b B+78 a C+18 (b B+a C) \cos (2 (c+d x))+7 b C \cos (3 (c+d x)))) \sin (c+d x)}{630 d} \]
(84*(9*A*b + 9*a*B + 7*b*C)*EllipticE[(c + d*x)/2, 2] + 60*(7*a*A + 5*b*B + 5*a*C)*EllipticF[(c + d*x)/2, 2] + Sqrt[Cos[c + d*x]]*(7*(36*A*b + 36*a* B + 43*b*C)*Cos[c + d*x] + 5*(84*a*A + 78*b*B + 78*a*C + 18*(b*B + a*C)*Co s[2*(c + d*x)] + 7*b*C*Cos[3*(c + d*x)]))*Sin[c + d*x])/(630*d)
Time = 0.83 (sec) , antiderivative size = 180, normalized size of antiderivative = 0.95, number of steps used = 13, number of rules used = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.317, Rules used = {3042, 3512, 27, 3042, 3502, 27, 3042, 3227, 3042, 3115, 3042, 3119, 3120}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^{3/2} \left (a+b \sin \left (c+d x+\frac {\pi }{2}\right )\right ) \left (A+B \sin \left (c+d x+\frac {\pi }{2}\right )+C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )dx\) |
\(\Big \downarrow \) 3512 |
\(\displaystyle \frac {2}{9} \int \frac {1}{2} \cos ^{\frac {3}{2}}(c+d x) \left (9 (b B+a C) \cos ^2(c+d x)+(9 A b+7 C b+9 a B) \cos (c+d x)+9 a A\right )dx+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{9} \int \cos ^{\frac {3}{2}}(c+d x) \left (9 (b B+a C) \cos ^2(c+d x)+(9 A b+7 C b+9 a B) \cos (c+d x)+9 a A\right )dx+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \int \sin \left (c+d x+\frac {\pi }{2}\right )^{3/2} \left (9 (b B+a C) \sin \left (c+d x+\frac {\pi }{2}\right )^2+(9 A b+7 C b+9 a B) \sin \left (c+d x+\frac {\pi }{2}\right )+9 a A\right )dx+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3502 |
\(\displaystyle \frac {1}{9} \left (\frac {2}{7} \int \frac {1}{2} \cos ^{\frac {3}{2}}(c+d x) (9 (7 a A+5 b B+5 a C)+7 (9 A b+7 C b+9 a B) \cos (c+d x))dx+\frac {18 (a C+b B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{9} \left (\frac {1}{7} \int \cos ^{\frac {3}{2}}(c+d x) (9 (7 a A+5 b B+5 a C)+7 (9 A b+7 C b+9 a B) \cos (c+d x))dx+\frac {18 (a C+b B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \left (\frac {1}{7} \int \sin \left (c+d x+\frac {\pi }{2}\right )^{3/2} \left (9 (7 a A+5 b B+5 a C)+7 (9 A b+7 C b+9 a B) \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx+\frac {18 (a C+b B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle \frac {1}{9} \left (\frac {1}{7} \left (9 (7 a A+5 a C+5 b B) \int \cos ^{\frac {3}{2}}(c+d x)dx+7 (9 a B+9 A b+7 b C) \int \cos ^{\frac {5}{2}}(c+d x)dx\right )+\frac {18 (a C+b B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \left (\frac {1}{7} \left (9 (7 a A+5 a C+5 b B) \int \sin \left (c+d x+\frac {\pi }{2}\right )^{3/2}dx+7 (9 a B+9 A b+7 b C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2}dx\right )+\frac {18 (a C+b B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {1}{9} \left (\frac {1}{7} \left (7 (9 a B+9 A b+7 b C) \left (\frac {3}{5} \int \sqrt {\cos (c+d x)}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )+9 (7 a A+5 a C+5 b B) \left (\frac {1}{3} \int \frac {1}{\sqrt {\cos (c+d x)}}dx+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )\right )+\frac {18 (a C+b B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \left (\frac {1}{7} \left (7 (9 a B+9 A b+7 b C) \left (\frac {3}{5} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )+9 (7 a A+5 a C+5 b B) \left (\frac {1}{3} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )\right )+\frac {18 (a C+b B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \frac {1}{9} \left (\frac {1}{7} \left (9 (7 a A+5 a C+5 b B) \left (\frac {1}{3} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )+7 (9 a B+9 A b+7 b C) \left (\frac {6 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )\right )+\frac {18 (a C+b B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \frac {1}{9} \left (\frac {1}{7} \left (7 (9 a B+9 A b+7 b C) \left (\frac {6 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )+9 (7 a A+5 a C+5 b B) \left (\frac {2 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )\right )+\frac {18 (a C+b B) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
(2*b*C*Cos[c + d*x]^(7/2)*Sin[c + d*x])/(9*d) + ((18*(b*B + a*C)*Cos[c + d *x]^(5/2)*Sin[c + d*x])/(7*d) + (9*(7*a*A + 5*b*B + 5*a*C)*((2*EllipticF[( c + d*x)/2, 2])/(3*d) + (2*Sqrt[Cos[c + d*x]]*Sin[c + d*x])/(3*d)) + 7*(9* A*b + 9*a*B + 7*b*C)*((6*EllipticE[(c + d*x)/2, 2])/(5*d) + (2*Cos[c + d*x ]^(3/2)*Sin[c + d*x])/(5*d)))/7)/9
3.11.65.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[b^2*((n - 1)/n) Int[(b*Sin [c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[ 2*n]
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x _)]), x_Symbol] :> Simp[c Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b Int [(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Co s[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Simp[1/(b*(m + 2)) Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] && !LtQ[m, -1]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f _.)*(x_)]^2), x_Symbol] :> Simp[(-C)*d*Cos[e + f*x]*Sin[e + f*x]*((a + b*Si n[e + f*x])^(m + 1)/(b*f*(m + 3))), x] + Simp[1/(b*(m + 3)) Int[(a + b*Si n[e + f*x])^m*Simp[a*C*d + A*b*c*(m + 3) + b*(B*c*(m + 3) + d*(C*(m + 2) + A*(m + 3)))*Sin[e + f*x] - (2*a*C*d - b*(c*C + B*d)*(m + 3))*Sin[e + f*x]^2 , x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, m}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && !LtQ[m, -1]
Leaf count of result is larger than twice the leaf count of optimal. \(564\) vs. \(2(222)=444\).
Time = 10.34 (sec) , antiderivative size = 565, normalized size of antiderivative = 2.97
method | result | size |
default | \(-\frac {2 \sqrt {\left (-1+2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (-1120 C b \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (720 B b +720 C a +2240 C b \right ) \left (\sin ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-504 A b -504 B a -1080 B b -1080 C a -2072 C b \right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (420 a A +504 A b +504 B a +840 B b +840 C a +952 C b \right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-210 a A -126 A b -126 B a -240 B b -240 C a -168 C b \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+105 a A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-189 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) b +75 B b \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-189 B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a +75 C a \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-147 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) b \right )}{315 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-1+2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}\) | \(565\) |
parts | \(\text {Expression too large to display}\) | \(808\) |
int(cos(d*x+c)^(3/2)*(a+b*cos(d*x+c))*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x,me thod=_RETURNVERBOSE)
-2/315*((-1+2*cos(1/2*d*x+1/2*c)^2)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(-1120*C*b *cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^10+(720*B*b+720*C*a+2240*C*b)*sin(1 /2*d*x+1/2*c)^8*cos(1/2*d*x+1/2*c)+(-504*A*b-504*B*a-1080*B*b-1080*C*a-207 2*C*b)*sin(1/2*d*x+1/2*c)^6*cos(1/2*d*x+1/2*c)+(420*A*a+504*A*b+504*B*a+84 0*B*b+840*C*a+952*C*b)*sin(1/2*d*x+1/2*c)^4*cos(1/2*d*x+1/2*c)+(-210*A*a-1 26*A*b-126*B*a-240*B*b-240*C*a-168*C*b)*sin(1/2*d*x+1/2*c)^2*cos(1/2*d*x+1 /2*c)+105*a*A*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2 )*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-189*A*(sin(1/2*d*x+1/2*c)^2)^(1/2) *(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*b+ 75*B*b*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*Ellip ticF(cos(1/2*d*x+1/2*c),2^(1/2))-189*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin (1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*a+75*C*a* (sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(co s(1/2*d*x+1/2*c),2^(1/2))-147*C*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d* x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*b)/(-2*sin(1/2*d *x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/sin(1/2*d*x+1/2*c)/(-1+2*cos(1/2*d *x+1/2*c)^2)^(1/2)/d
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.13 (sec) , antiderivative size = 246, normalized size of antiderivative = 1.29 \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {2 \, {\left (35 \, C b \cos \left (d x + c\right )^{3} + 45 \, {\left (C a + B b\right )} \cos \left (d x + c\right )^{2} + 15 \, {\left (7 \, A + 5 \, C\right )} a + 75 \, B b + 7 \, {\left (9 \, B a + {\left (9 \, A + 7 \, C\right )} b\right )} \cos \left (d x + c\right )\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 15 \, \sqrt {2} {\left (i \, {\left (7 \, A + 5 \, C\right )} a + 5 i \, B b\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) - 15 \, \sqrt {2} {\left (-i \, {\left (7 \, A + 5 \, C\right )} a - 5 i \, B b\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 21 \, \sqrt {2} {\left (-9 i \, B a - i \, {\left (9 \, A + 7 \, C\right )} b\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 21 \, \sqrt {2} {\left (9 i \, B a + i \, {\left (9 \, A + 7 \, C\right )} b\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{315 \, d} \]
integrate(cos(d*x+c)^(3/2)*(a+b*cos(d*x+c))*(A+B*cos(d*x+c)+C*cos(d*x+c)^2 ),x, algorithm="fricas")
1/315*(2*(35*C*b*cos(d*x + c)^3 + 45*(C*a + B*b)*cos(d*x + c)^2 + 15*(7*A + 5*C)*a + 75*B*b + 7*(9*B*a + (9*A + 7*C)*b)*cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) - 15*sqrt(2)*(I*(7*A + 5*C)*a + 5*I*B*b)*weierstrassPInv erse(-4, 0, cos(d*x + c) + I*sin(d*x + c)) - 15*sqrt(2)*(-I*(7*A + 5*C)*a - 5*I*B*b)*weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c)) - 21* sqrt(2)*(-9*I*B*a - I*(9*A + 7*C)*b)*weierstrassZeta(-4, 0, weierstrassPIn verse(-4, 0, cos(d*x + c) + I*sin(d*x + c))) - 21*sqrt(2)*(9*I*B*a + I*(9* A + 7*C)*b)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))))/d
Timed out. \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\text {Timed out} \]
\[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {3}{2}} \,d x } \]
integrate(cos(d*x+c)^(3/2)*(a+b*cos(d*x+c))*(A+B*cos(d*x+c)+C*cos(d*x+c)^2 ),x, algorithm="maxima")
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c) + a)*cos (d*x + c)^(3/2), x)
\[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {3}{2}} \,d x } \]
integrate(cos(d*x+c)^(3/2)*(a+b*cos(d*x+c))*(A+B*cos(d*x+c)+C*cos(d*x+c)^2 ),x, algorithm="giac")
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c) + a)*cos (d*x + c)^(3/2), x)
Time = 3.62 (sec) , antiderivative size = 254, normalized size of antiderivative = 1.34 \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {2\,A\,a\,\left (\sqrt {\cos \left (c+d\,x\right )}\,\sin \left (c+d\,x\right )+\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )\right )}{3\,d}-\frac {2\,A\,b\,{\cos \left (c+d\,x\right )}^{7/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {7}{4};\ \frac {11}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{7\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,B\,a\,{\cos \left (c+d\,x\right )}^{7/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {7}{4};\ \frac {11}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{7\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,B\,b\,{\cos \left (c+d\,x\right )}^{9/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {9}{4};\ \frac {13}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{9\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,C\,a\,{\cos \left (c+d\,x\right )}^{9/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {9}{4};\ \frac {13}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{9\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,C\,b\,{\cos \left (c+d\,x\right )}^{11/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {11}{4};\ \frac {15}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{11\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]
(2*A*a*(cos(c + d*x)^(1/2)*sin(c + d*x) + ellipticF(c/2 + (d*x)/2, 2)))/(3 *d) - (2*A*b*cos(c + d*x)^(7/2)*sin(c + d*x)*hypergeom([1/2, 7/4], 11/4, c os(c + d*x)^2))/(7*d*(sin(c + d*x)^2)^(1/2)) - (2*B*a*cos(c + d*x)^(7/2)*s in(c + d*x)*hypergeom([1/2, 7/4], 11/4, cos(c + d*x)^2))/(7*d*(sin(c + d*x )^2)^(1/2)) - (2*B*b*cos(c + d*x)^(9/2)*sin(c + d*x)*hypergeom([1/2, 9/4], 13/4, cos(c + d*x)^2))/(9*d*(sin(c + d*x)^2)^(1/2)) - (2*C*a*cos(c + d*x) ^(9/2)*sin(c + d*x)*hypergeom([1/2, 9/4], 13/4, cos(c + d*x)^2))/(9*d*(sin (c + d*x)^2)^(1/2)) - (2*C*b*cos(c + d*x)^(11/2)*sin(c + d*x)*hypergeom([1 /2, 11/4], 15/4, cos(c + d*x)^2))/(11*d*(sin(c + d*x)^2)^(1/2))